package com.yn.iotxiao.sql.services;

import java.util.List;

public interface BaseService<T> {

    int insert(T t);
    int batchInsert(List<T> list);
    int deleteWithKey(Object key);

    T getWithKey(Object key);

    List<T> getListPage(String searchKey, int page, int pageSize);
    int getTotal(String searchKey);
}
